export const getMomentList = (order) => {
	console.log(order);
	return uni.$uv.http.request({
		url: '/elderly/moment/getMomentList',
		method: 'GET',
		params: {
			order
		},
		custom: {
			loading: true,
			toast: true
		}
	});
};

export const likeOrUnlikeMoment = (data) => {
	console.log(data);
	return uni.$uv.http.post('/elderly/momentLike/likeOrUnlike', data, {
		custome: {
			loading: true,
			toast: true
		}
	});
};

export const deleteMoment = (momentId) => {
	console.log(momentId);
	return uni.$uv.http.request({
		url: '/elderly/moment/deleteMoment',
		method: 'POST',
		params: {
			momentId
		},
		custom: {
			loading: true,
			toast: true
		}
	});
}

export const addMoment = (data) => {
	return uni.$uv.http.post('/elderly/moment/addMoment', data, {
		custom: {
			loading: true,
			toast: true
		}
	});
}

export const getMomentDetail = (momentId) => {
	console.log(momentId);
	return uni.$uv.http.request({
		url: '/elderly/moment/getMomentDetail',
		method: 'GET',
		params: {
			momentId
		},
		custom: {
			loading: true,
			toast: true
		}
	});
}